/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package fr.ove.openmath.jome.ctrlview.bidim;

/**
 *
 * @author Mr.Sam
 */
import java.awt.Point;

/**
* Interface that must implement all objects that want to be located.
*
* @author © 1999 DIRAT Laurent
* @version 2.0 29/06/1999
*/
public interface Localisable {
    /**
    * Sets the x-location of the instance.
    * @param x the x-location of the instance.
    */
    public void setX(int x);
    
    /**
    * Returns the x-location of the instance.
    */
    public int getX();
    
    /**
    * Sets the y-location of the instance.
    * @param y the y-location of the instance.
    */
    public void setY(int y);
    
    /**
    * Returns the y-location of the instance.
    */
    public int getY();
    
    /**
    * Sets the location of the instance.
    * @param x the x-location of the instance.
    * @param y the y-location of the instance.
    */
    public void setLocation(int x, int y);
    
    /**
    * Sets the location of the instance.
    * @param location the location of the instance.
    */
    public void setLocation(Point location);
    
    /**
    * Returns the location of the instance.
    * @return A <CODE>Point</CODE> representing the location of the instance.
    */
    public Point getLocation();
}
